package com.heking.securityapp;

import android.app.Application;

import com.heking.security.SecuritySDK;
import com.heking.security.encryption.AssetsDecryptHelper;
import com.heking.security.encryption.EncryptConstants;

import java.io.File;

/**
 * @Author 35574
 * @Date 2021/10/25
 * @Description
 */
public class App extends Application {
    private static final String TAG = ">>>App";

    @Override
    public void onCreate() {
        super.onCreate();
        SecuritySDK.setDebug(true);

        AssetsDecryptHelper assetsDecryptHelper = new AssetsDecryptHelper(EncryptConstants.TRANSFORMATION_AES_CBC_P7,
                "9e6aae62a2e24edf99a2cbce",
                "0123456789123456");
        File folder=new File(getFilesDir(),"cers");
        assetsDecryptHelper.startDecrypt(this,"certificates","encrypt",folder.getAbsolutePath(),true);
//        assetsDecryptHelper.test();
    }

}
